package hbr.vedio.x163;

import java.io.IOException;

import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class Init163 {
	
	public static void main(String[] args) throws Exception {
		String ua = "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36";
		String url="http://open.163.com/ocw/";
		Connection conn = Jsoup.connect(url);
		
		Document doc = conn.get();
		
		Elements es = doc.select(".u-cover");
		
		for(Element e:es){
			String f_url=e.attr("href");
			if(f_url.startsWith("http://v.163.com/special")){
				String f_cover=e.select("img").attr("data-original");
				System.out.print(f_url);
				System.out.print("\t");
				System.out.println(f_cover);
				
			}
			
			
		}
		
		
		

	}

}
